﻿@model IList<ProductOverviewModel>
@using Nop.Web.Models.Catalog;
@if (Model.Count > 0)
{
    <div class="block block-recently-viewed-products">
        <div class="title">
            <strong>@T("Products.RecentlyViewedProducts")</strong>
        </div>
        <div class="clear">
        </div>
        <div class="listbox">
            <ul>
                @for (int i = 0; i < Model.Count; i++)
                {
                    var product = Model[i];
                    <li><a href="@Url.RouteUrl("Product", new { SeName = product.SeName })">@product.Name</a>
                    </li>
                    if (i != Model.Count - 1)
                    {
                        <li class="separator">&nbsp;</li>
                    }
                }
            </ul>
        </div>
    </div>
}